<template>
  <div class="h-full">
    <TenantHome v-if="hasPermission('TENANT_ADMIN')" />
    <SysadminHome v-if="hasPermission('SYS_ADMIN')" />
    <CustomerHome v-if="hasPermission('CUSTOMER_USER')" />
  </div>
</template>
<script setup lang="ts">
  import TenantHome from './components/TenantHome.vue';
  import CustomerHome from './components/CustomerHome.vue';
  import SysadminHome from './components/SysadminHome.vue';
  import { usePermission } from '/@/hooks/web/usePermission';
  const { hasPermission } = usePermission();
  // 获取用户登录信息
</script>
